/**
 * url 常量类
 * 
 * add by wuxw 2019-12-28
 */
const constant = require("../constant/index.js");
import conf from '../conf/config.js'
const baseUrl = conf.baseUrl;

const wechatRefrashToken = baseUrl + "app/refreshToken"; // 公众号刷新token

const loginOwnerByKey = baseUrl + "app/loginOwnerByKey"; // 根据临时秘钥登录

const loginUrl = baseUrl + 'app/loginWx';
const getWxPhoto = baseUrl + 'app/getWxPhoto';
const loginOwnerUrl = baseUrl + 'app/loginOwner';
const areaUrl = baseUrl + "app/area.listAreas";
const GetNoticeListUrl = baseUrl + 'renren-fast/proprietorApi/wechat/office/announcement/list'; //公告接口
const saveOwnerRepair = baseUrl + 'renren-fast/proprietorApi/wechat/owner/workorder/addWorkOrderPool'; //报修

const listOwnerRepairs = baseUrl + 'renren-fast/proprietorApi/wechat/owner/workorder/getWorkOrder'; //查询报修

const saveOwner = baseUrl + 'renren-fast/proprietorApi/wechat/owner/family/add'; //家庭成员列表
const saveOwnerList = baseUrl + 'renren-fast/proprietorApi/wechat/owner/family/list'; //家庭成员列表

const queryOwnerMembers = baseUrl + 'app/owner.queryOwnerMembers'; //投诉建议列表

const listComplaints = baseUrl + 'app/complaint.listComplaints'; //添加投诉建议

const saveComplaint = baseUrl + 'app/complaint'; //查询业主房间

const queryRoomsByOwner = baseUrl + 'app/room.queryRoomsByOwner'; //绑定业主

const appUserBindingOwner = baseUrl + 'app/owner.appUserBindingOwner'; //查询绑定业主

const ownerRegiter = baseUrl + 'app/owner.ownerRegister'; //业主注册

const ownerRegisterWxPhoto = baseUrl + 'app/owner.ownerRegisterWxPhoto'; //业主注册

const queryAppUserBindingOwner = baseUrl + 'app/owner.listAppUserBindingOwners'; //解绑业主

const appUserUnBindingOwner = baseUrl + 'app/owner.deleteAppUserBindingOwner'; //查询业主门禁

const listOwnerMachines = baseUrl + 'app/owner.listOwnerMachines'; // 申请钥匙

const applyApplicationKey = baseUrl + "app/applicationKey.applyApplicationKey"; //查询钥匙

const listApplicationKeys = baseUrl + "app/applicationKey.listApplicationKeys"; //申请访客钥匙

const applyVisitorApplicationKey = baseUrl + "app/applicationKey.applyVisitorApplicationKey"; //上传业主照片

const uploadOwnerPhoto = baseUrl + "app/owner.uploadOwnerPhoto";
const getOwnerPhotoPath = baseUrl + "callComponent/download/getFile/fileByObjId";
const filePath = baseUrl + "callComponent/download/getFile/file"; //查询业主车位信息

const queryParkingSpacesByOwner = baseUrl + "app/parkingSpace.queryParkingSpacesByOwner"; //查询停车位费用

const queryFeeByParkingSpace = baseUrl + "app/fee.queryFeeByParkingSpace"; //查询物业费用

const queryFeeByOwner = baseUrl + "app/fee.listFee"; //预下单





const bindCarNumber = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/relateCarAndHouse" ;// 已绑定车位关联车牌号
const getIntegral = baseUrl + "renren-fast/proprietorApi/wechat/owner/family/getUserIntegral" ;// 查询积分
const getCoupons = baseUrl + "renren-fast/proprietorApi/wechat/owner/family/getUserDiscounts" ;// 查询优惠券
const choiceHasHouse = baseUrl + "renren-fast/proprietorApi/architecture/wecharhouseDeliveryAppointment/getBinding"; //查询已绑定的房屋
const repaiRole = baseUrl + "renren-fast/proprietorApi/wechat/owner/workorder/initPage" ;// 查询角色
const repairOrder = baseUrl + "renren-fast/proprietorApi/wechat/owner/workorder/getWrderOrderType"; // 查询工单
const shenpi = baseUrl + "renren-fast/proprietorApi/wechat/owner/family/getExamineFamily" // 审批查询
const changCountry = baseUrl + "renren-fast/proprietorApi/appProperty/wecharifon/updateAppUser" //将小区传给后端进行修改
const intoOwner = baseUrl + "renren-fast/proprietorApi/wechat/proprietor/proprietorInfo"; // 获取业主列表
const applyOwner = baseUrl + "renren-fast/proprietorApi/wechat/proprietor/proprietorInfo/add"; //申请成为业主
const faceUpload = baseUrl + "renren-fast/proprietorApi/sys/oss/upload"; //人脸图片上传
const changeCarId = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/updateCarNum"; //修改车牌号
const peopleFace = baseUrl + "renren-fast/proprietorApi/face/addFaceInfo"; //人脸识别
const addCarList = baseUrl + "renren-fast/proprietorApi/parking/owner/add"; // 查询车位车牌号
const mineCarNumber = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/getCarOwner"; // 查询车位车牌号
const queryCarDetails = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/getCarEXamineInfo"; // 查询车位详情
const queryCarNum = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/getNotBindingCarport"; // 查询当前小区未绑定的车位
const bindOwner = baseUrl + "renren-fast/proprietorApi/appProperty/wecharifon/saveProprietorUser"; // 车位解绑
const deleteOwnerCar = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/relieveExamine"; // 车位解绑
const mineCar = baseUrl + "renren-fast/proprietorApi/wechat/owner/parking/getCarExamine"; //我的车位列表
const userLogin = baseUrl + "renren-fast/proprietorApi/app/wx/login"; //小程序授权登录
const getPhone = baseUrl + "renren-fast/proprietorApi/app/getPhone"; //小程序授权登录获取手机号
const userLogout = baseUrl + 'renren-fast/proprietorApi/app/wx/logout'; //退出登录
const bindHouseInfo = baseUrl + "renren-fast/proprietorApi/weChat/architecture/houseInfo"; //查询我的房屋绑定信息
const newBindHouse = baseUrl + "renren-fast/proprietorApi/weChat/architecture/houseInfo/list"; //查询我的房屋绑定信息(新)
const preOrder = baseUrl + "renren-fast/proprietorApi/architecture/communityInfo/list"; //查询小区信息
const ownerInfo = baseUrl + "renren-fast/proprietorApi/wechat/proprietor/proprietorInfo"; //查询小区业主信息
// 大熊
// const loadOwnerHouse = baseUrl + 'weChat/architecture/houseInfo', //提交、查询业主房屋绑定信息
const bindHouse = baseUrl + "renren-fast/proprietorApi/weChat/architecture/houseInfo/list"; //绑定房屋
const bindRecords = baseUrl + "renren-fast/proprietorApi/weChat/architecture/houseInfo"; //查询绑定房屋已通过记录
// const complaintsS
const complaintsSubmit = baseUrl +
"renren-fast/proprietorApi/wechat/office/complaintManage"; //投诉处理>投诉提交 ；查询投诉ubmit = baseUrl + "renren-fast/wechat/office/complaintManage"; //投诉处理>投诉提交 ；查询投诉
// const cancelSub = baseUrl + `wechat/office/complaintManage/${id}`; //取消投诉
const queryParkingSpaces = baseUrl + 'app/parkingSpace.queryParkingSpaces'; //查询空闲车位

const saveOwnerCar = baseUrl +
'renren-fast/proprietorApi/wechat/owner/parking/applyCarport'; //申请车位接口owner.saveOwnerCar（原来的）

const queryOwnerCars = baseUrl + 'app/parkingSpaceApply.listParkingSpaceApply'; //查询业主车辆
// 查询申请类型（空置房）
const queryApplyRoomDiscountType = baseUrl + 'app/applyRoomDiscount/queryApplyRoomDiscountType';
// 提交申请
const saveApplyRoomDiscount = baseUrl + 'app/applyRoomDiscount/saveApplyRoomDiscount';
const queryFeeDiscount = baseUrl + 'app/feeDiscount/queryFeeDiscount';
const saveRoomRenovation = baseUrl + 'app/roomRenovation/saveRoomRenovation';
const saveAddVisit = baseUrl + "renren-fast/proprietorApi/wechat/office/visitorRegistration/add"; //提交访客申请
const listOwnerVisit = baseUrl +
"renren-fast/proprietorApi/wechat/office/visitorRegistration/getVisitorRegistration"; //访客登记





const toOweFeePay = baseUrl + "app/payment/toOweFeePay"; //欠费缴费

//临时车缴费
const preOrderTempCarInout = baseUrl + "/app/payment/toPayTempCarInout";

const listCommunitys = baseUrl + "renren-fast/proprietorApi/architecture/communityInfo/list"; //查询小区文化
const listFloot = baseUrl + "renren-fast/proprietorApi/architecture/communityInfo/tree"; //查询小区楼栋

const listActivitiess = baseUrl + "app/activities.listActivitiess"; //查询小区广告

// const listAdvertPhoto = baseUrl + "app/advert.listAdvertPhoto";

//查询车辆进场费用
const queryFeeByCarInout = baseUrl + "app/fee.queryFeeByCarInout";

//查询报修单
const listMyRepair = baseUrl + "renren-fast/proprietorApi/wechat/owner/workorder/getWorkOrder";

//查询在场车辆
const listCarIn = baseUrl + "app/carInout.listCarInouts";

const queryConfigFee = baseUrl + "app/fee.queryFeeConfig";

//缴费历史查询
const queryFeeDetail = baseUrl + "renren-fast/proprietorApi/wechat/charge/chargeHouseBill/list";

//发送验证码
const userSendSms = baseUrl + "app/user.userSendSms";

// const userLogout = baseUrl + 'app/user.service.logout'; //绑定业主

const listStore = baseUrl + 'app/store.listStoresByCommunity'; // 查询小区商户

//发布需求信息
const saveJunkRequirement = baseUrl + 'app/junkRequirement.saveJunkRequirement';

//查询需求信息
const listJunkRequirements = baseUrl + 'app/junkRequirement.listJunkRequirements';

//删除 需求信息
const deleteJunkRequirement = baseUrl + 'app/junkRequirement.deleteJunkRequirement';

//标记为已完成
const updateJunkRequirement = baseUrl + 'app/junkRequirement.updateJunkRequirement';

//查询楼栋
const queryFloor = baseUrl + 'renren-fast/proprietorApi/architecture/communityInfo/tree';

//查询单元
const queryUnit = baseUrl + 'renren-fast/proprietorApi/architecture/communityInfo/tree';

//查询报修类型
// const listRepairSettings = baseUrl + 'renren-fast/workorder/workorder/getWrderOrderType';  //大熊
//查询报修类型
// const listRepairSettings = baseUrl + 'workorder/workorder/getWrderOrderType';

//待办工单
const listStaffRepairs = baseUrl + "app/ownerRepair.listStaffRepairs";

//已办工单
const listStaffFinishRepairs = baseUrl + "app/ownerRepair.listStaffFinishRepairs";

// 查询报修单处理师傅
const listRepairStaffs = baseUrl + "app/ownerRepair.listRepairStaffs";


// 删除报修单
const deleteOwnerRepair = baseUrl + "renren-fast/proprietorApi/wechat/owner/workorder/deleteWorder";

// 报修退单
const repairDispatch = baseUrl + 'app/ownerRepair.repairDispatch';

// 报修评价
const appraiseRepair = baseUrl + 'app/repair/appraiseRepair';


// 根据属性查询费用
const listFeeByAttr = baseUrl + "app/feeApi/listFeeByAttr";

// 投诉 处理意见
const listWorkflowAuditInfo = baseUrl + 'app/workflow.listWorkflowAuditInfo';

//查询待审核单
const auditComplaint = baseUrl + 'app/complaint.auditComplaint';

const changeStaffPwd = baseUrl + 'app/user.changeStaffPwd'; //修改密码

const changeOwnerPhone = baseUrl + 'app/ownerApi/changeOwnerPhone'; //修改密码

const deleteOwner = baseUrl + "renren-fast/proprietorApi/wechat/owner/family/delete"; //删除家庭成员

const queryRentingPool = baseUrl + 'app/renting/queryRentingPool'; //查询房源









// 交房预约
const houseList = baseUrl + "renren-fast/proprietorApi/architecture/wecharhouseDeliveryAppointment/list"
// 提交交房预约
const handoverApply = baseUrl +
	"renren-fast/proprietorApi/architecture/wecharhouseDeliveryAppointment/addHouseDeliveryAppointment"
// 获取小区信息
const communityInformation = baseUrl + "renren-fast/proprietorApi/architecture/communityInfo/tree"
// 获取生活缴费中的物业费中的电费账单1
const propertyFee = baseUrl + "renren-fast/proprietorApi/charge/livingPayment/getHouseExpense"
// 获取用户优惠卷
const couponUser = baseUrl + "renren-fast/proprietorApi/wechat/owner/family/getUserDiscounts"
// 获取到已绑定的房屋
const bindingHouse = baseUrl + "renren-fast/proprietorApi/architecture/wecharhouseDeliveryAppointment/getBindingHouse"
// 获取绑定的详情
const houseDetail = baseUrl +
	"renren-fast/proprietorApi/architecture/wecharhouseDeliveryAppointment/getHouseDeliveryById"
// 选择优惠卷
const SelecConpon = baseUrl + "renren-fast/proprietorApi/charge/livingPayment/payCost"
// 确认去缴费
const PaymentConfirmation = baseUrl + "renren-fast/proprietorApi/charge/livingPayment/prePay"



/**
 * 不需要登录页面
 */
const NEED_NOT_LOGIN_PAGE = [
	'pages/notice/index',
	
	
	
	'/pages/login/login',
	'/pages/register/register',
	'/pages/my/my',
	'/pages/index/index',
	'/pages/market/market',
	'/pages/showlogin/showlogin',
	'/pages/rentHouse/rentHouse'
];

const NEED_NOT_LOGIN_URL = [
	listActivitiess,
	// listAdvertPhoto,
	queryAppUserBindingOwner,
	listJunkRequirements,
	queryRentingPool
];

module.exports = {
	baseUrl: baseUrl,
	loginUrl: loginUrl,
	getWxPhoto: getWxPhoto,
	loginOwnerUrl: loginOwnerUrl,
	areaUrl: areaUrl,
	GetNoticeListUrl: GetNoticeListUrl,
	saveOwnerRepair: saveOwnerRepair,
	listOwnerRepairs: listOwnerRepairs,
	saveOwner: saveOwner,
	saveOwnerList: saveOwnerList,
	appUserBindingOwner: appUserBindingOwner,
	queryAppUserBindingOwner: queryAppUserBindingOwner,
	queryOwnerMembers: queryOwnerMembers,
	listComplaints: listComplaints,
	saveComplaint: saveComplaint,
	appUserUnBindingOwner: appUserUnBindingOwner,
	listOwnerMachines: listOwnerMachines,
	applyApplicationKey: applyApplicationKey,
	listApplicationKeys: listApplicationKeys,
	applyVisitorApplicationKey: applyVisitorApplicationKey,
	uploadOwnerPhoto: uploadOwnerPhoto,
	getOwnerPhotoPath: getOwnerPhotoPath,
	queryRoomsByOwner: queryRoomsByOwner,
	queryParkingSpacesByOwner: queryParkingSpacesByOwner,
	queryFeeByParkingSpace: queryFeeByParkingSpace,
	queryFeeByOwner: queryFeeByOwner,
	preOrder: preOrder,
	listCommunitys: listCommunitys,
	listActivitiess: listActivitiess,
	filePath: filePath,
	// listAdvertPhoto: listAdvertPhoto,
	listMyRepair: listMyRepair,
	listCarIn: listCarIn,
	queryConfigFee: queryConfigFee,
	queryFeeByCarInout: queryFeeByCarInout,
	preOrderTempCarInout: preOrderTempCarInout,
	queryFeeDetail: queryFeeDetail,
	userSendSms: userSendSms,
	userLogout: userLogout,
	ownerRegiter: ownerRegiter,
	listStore: listStore,
	saveJunkRequirement: saveJunkRequirement,
	listJunkRequirements: listJunkRequirements,
	deleteJunkRequirement: deleteJunkRequirement,
	updateJunkRequirement: updateJunkRequirement,
	wechatRefrashToken: wechatRefrashToken,
	loginOwnerByKey: loginOwnerByKey,
	NEED_NOT_LOGIN_URL: NEED_NOT_LOGIN_URL,
	NEED_NOT_LOGIN_PAGE: NEED_NOT_LOGIN_PAGE,
	queryFloor: queryFloor,
	queryUnit: queryUnit,
	// listRepairSettings: listRepairSettings,
	listStaffRepairs: listStaffRepairs,
	listStaffFinishRepairs: listStaffFinishRepairs,
	listRepairStaffs: listRepairStaffs,
	deleteOwnerRepair: deleteOwnerRepair,
	repairDispatch: repairDispatch,
	appraiseRepair: appraiseRepair,
	listFeeByAttr: listFeeByAttr,
	listWorkflowAuditInfo: listWorkflowAuditInfo,
	auditComplaint: auditComplaint,
	ownerRegisterWxPhoto: ownerRegisterWxPhoto,
	changeStaffPwd: changeStaffPwd,
	changeOwnerPhone: changeOwnerPhone,
	queryRentingPool: queryRentingPool,
	deleteOwner: deleteOwner,

	toOweFeePay: toOweFeePay,

	queryParkingSpaces: queryParkingSpaces,
	saveOwnerCar: saveOwnerCar,
	queryOwnerCars: queryOwnerCars,
	queryApplyRoomDiscountType: queryApplyRoomDiscountType,
	saveApplyRoomDiscount: saveApplyRoomDiscount,
	queryFeeDiscount: queryFeeDiscount,
	saveRoomRenovation: saveRoomRenovation,
	saveAddVisit: saveAddVisit,
	listOwnerVisit: listOwnerVisit,
	ownerInfo: ownerInfo,
	bindRecords: bindRecords,
	bindHouseInfo: bindHouseInfo,
	complaintsSubmit: complaintsSubmit,
	userLogin: userLogin,
	mineCar: mineCar,
	deleteOwnerCar: deleteOwnerCar,
	bindOwner: bindOwner,
	listFloot: listFloot,
	queryCarNum: queryCarNum,
	queryCarDetails: queryCarDetails,
	mineCarNumber: mineCarNumber,
	addCarList: addCarList,
	peopleFace: peopleFace,
	changeCarId: changeCarId,
	faceUpload: faceUpload,
	getPhone: getPhone,
	applyOwner: applyOwner,
	intoOwner: intoOwner, //获取成员列表
	changCountry:changCountry,
	shenpi:shenpi,
	repairOrder:repairOrder,
	repaiRole:repaiRole,
	bindHouse:bindHouse,
	choiceHasHouse:choiceHasHouse,
	getIntegral:getIntegral,
	bindCarNumber:bindCarNumber,
	newBindHouse:newBindHouse,
	getCoupons:getCoupons,
	// cancelSub:cancelSub,








	// 小灰灰
	houseList: houseList,
	handoverApply: handoverApply,
	communityInformation: communityInformation,
	propertyFee: propertyFee,
	couponUser: couponUser,
	SelecConpon: SelecConpon,
	bindingHouse: bindingHouse,
	houseDetail: houseDetail,
	PaymentConfirmation: PaymentConfirmation,
};
